﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="/Themes/Js/init.js"></script>
    <title>代码自动生成</title>
    <script type="text/javascript">
        var index = 0;
        function addIframe(title, url) {
            index++;
            if ($('#tt').tabs('exists', title)) {
                $('#tt').tabs('select', title);
            }
            else {
                var content = '<div style="overflow:hidden;width:100%;height:100%;"><iframe scrolling="auto" frameborder="0"  src="' + url + '" style="width:100%;height:100%;"></iframe></div>';
                $('#tt').tabs('add', {
                    title: title,
                    content: content,
                    loadingMessage: '加载中...',
                    closable: true
                });
            }
        }

        $(document).ready(function () {
            $('#tree').tree({
                url: 'left.ashx',
                lines: true,
                onClick: function (node) {
                    var node = $('#tree').tree('getSelected');
                    addIframe(node.text, node.attributes.url);
                }
            })
        });

    </script>
</head>
<body class="easyui-layout">
    <!--<div data-options="region:'north',split:false,border:0" style="text-align:center; height: 35px; font-size: 16px;  line-height: 30px; padding-left: 20px;">
        后台程序自动生成系统
    </div>-->

    <div data-options="region:'west',split:true" title="表目录" style="width:260px;">
        <ul id="tree" class="easyui-tree" style="margin:5px;"></ul>
    </div>

    <div data-options="region:'center'" style="overflow:hidden;">
        <div id="tt" class="easyui-tabs" data-options="fit:true,border:false" style="overflow:hidden;">
            <!--<div title="首页" style="padding:20px;overflow:hidden;">
                <div style="margin-top:20px;"></div>
            </div>-->
        </div>
    </div>

    <div data-options="region:'south',split:false,collapsed:false" style=" text-align:center; height:30px;padding:5px;overflow:hidden; font-size:12px">
        CopyRight @2014 WangShuYu
    </div>

</body>
</html>